<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>封条管理及验证系统--公司信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<%@ include file="/comm.jsp"%>
		<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 600;
}
-->
</style>
<script>
function checkSubmit(status,checkflag){
	var form=document.getElementById("formpage");
	$d("hdfStatus").value=status;
	$d("hdfCheckFlag").value=checkflag;
	form.submit();
	return true;
}

function addScore(){
	//校验积分输入项
	var form=document.getElementById("formpage");
	form.submit();
	return true;
}
</script>
	<body leftmargin="0" topmargin="0" marginheight="0">
		<br>
		<s:form name="formpage" action="companyInfo_audit" namespace="/">
			<s:token>
			</s:token>
			<div align="center">
				<input type="hidden" id="hdfCompanyId" name="companyInfo.id"
					value="${companyInfo.id}" />
				<input type="hidden" id="hdfStatus" name="companyInfo.status" />
				<input type="hidden" id="hdfCheckFlag" name="companyInfo.checkFlag" />
				<input type="hidden" id="hdfOperflag" name="companyInfo.remark3" value="${operflag}" />
				<%@ include file="/messages.jsp"%>
				<table align="center" width="650" border="0">
					<tr>
						<td align="right" width="18%">
							公司代码:
						</td>
						<td>
							${companyInfo.companyId } &nbsp;等级:${companyInfo.level }
						</td>
					</tr>
					<tr>
						<td align="right">
							积分:
						</td>
						<td>
							${companyInfo.score }
						</td>
					</tr>
					<tr>
						<td align="right">
							公司名称:
						</td>
						<td>
							${companyInfo.companyName }
						</td>
					</tr>

					<tr>
						<td align="right">
							国家:
						</td>
						<td>
							${companyInfo.country }
						</td>
					</tr>

					<tr>
						<td align="right">
							联系电话:
						</td>
						<td>
							${companyInfo.countryCode } - ${companyInfo.telRegionCode } -
							${companyInfo.telNumber }
						</td>
					</tr>
					
					<tr>
						<td align="right">
							联系人:
						</td>
						<td>
							${companyInfo.contact }
						</td>
					</tr>

					<tr>
						<td align="right">
							联系地址:
						</td>
						<td>
							${companyInfo.address }
						</td>
					</tr>

					<tr>
						<td align="right">
							邮政编码:
						</td>
						<td>
							${companyInfo.postcode }
						</td>
					</tr>

					<tr>
						<td align="right">
							公司网址:
						</td>
						<td>
							<a href="${companyInfo.webSite }" target="_blank">
								${companyInfo.webSite } </a>
						</td>
					</tr>

					<tr>
						<td align="right">
							公司简介:
						</td>
						<td>
							${companyInfo.introduction }
						</td>
					</tr>
					
					<s:if test='"3"== #request.operflag '>
					<tr>
						<td align="right">赠送积分：</td>
						<td>
							<input id="txtScore" name="companyInfo.score"
									maxlength="20" type="text" />					
						</td>
					</tr>
					<tr>
						<td align="right">提示：</td>
						<td>一级500分,二级1000分,三级2000分,四级5000分,五级8000分,6级12000分</td>
					</tr>
					</s:if>
					
					
					<tr>
						<td colspan="2" align="center">
							<s:if test='"1"==#request.operflag'>
								<input type="button" class="button" id="btnCheckSucc"
									value="审核通过" onclick="return checkSubmit('','1');" />
								<input type="button" class="button" id="btnCheckFail"
									value="审核不通过" onclick="return checkSubmit('','2');" />
							</s:if>
							<s:if test='"2"==#request.operflag'>
								<s:if test='"1"==#request.companyInfo.status'>
									<input type="button" class="button" id="btnCreateSeq"
										value="冻结该企业" onclick="return checkSubmit('2','');" />
								</s:if>
								<s:if test='"2"==#request.companyInfo.status'>
									<input type="button" class="button" id="btnCreateSeq"
										value="解冻该企业" onclick="return checkSubmit('1','');" />
								</s:if>
							</s:if>
							<s:if test='"3"==#request.operflag'>
								<input type="button" class="button" id="btnAddScore"
										value="赠送积分" onclick="return addScore();" />
							</s:if>
							<input type="button" class="button" id="btnCancel" value=" 返 回 "
								onclick="javascript:history.go(-1);" />

						</td>
					</tr>
				</table>
			</div>
		</s:form>
	</body>
</html>